﻿@model MvcWeb.ViewModels.Home.LoginModel
@{
    ViewBag.Title = "登录页";
}
<style type="text/css">
    table td { padding: 3px 5px; }
</style>
<div style="position: absolute; left: 50%; top: 100px; margin-left: -200px; width: 400px; height: 200px; border: 1px solid #ccc;">
    @using (Html.BeginForm())
    {
        <div style="color: Red; height: 50px; line-height: 50px; font-size: 14px; text-align: center;">
            @if (IsPost)
            {
                @Model.Error
            }
        </div>
        <table style="margin: 0px 0px 0px 50px;">
            <tr>
                <td>@Html.LabelFor(m => m.UserName)</td>
                <td>
                    @Html.TextBoxFor(m => m.UserName)
                    @Html.ValidationMessageFor(m => m.UserName)
                </td>
            </tr>
            <tr>
                <td>@Html.LabelFor(m => m.Password)</td>
                <td>
                    @Html.PasswordFor(m => m.Password)
                    @Html.ValidationMessageFor(m => m.Password)
                </td>
            </tr>
            <tr>
                <td></td>
                <td>
                    <input type="submit" value="登录" class="btn_green" />
                    <input type="reset" value="重置" class="btn_orange" />
                </td>
            </tr>
        </table>
    }
</div>
